Conversation
Codecov Report
@@ Coverage Diff @@
## master #111 +/- ##
=======================================
Coverage 48.44% 48.44%
=======================================
Files 17 17
Lines 997 997
=======================================
Hits 483 483
Misses 514 514
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
|
Just as a side note: Since Since DER's type system is not fully compatible to |
This PR is supposed to replace MessagePack with ASN.1 DER as the preferred binary format.
There are several problems though:
serde_asn1_deris semi-abandoned and reports the format as human-readable, causing storage inefficiencies.picky-asn1-der, a fork ofserde_asn1_der, which is used in this PR, does not supportOptionalfields (or rather, it does not serializeNone, so a subsequent deserialization fails - let's wait for the resolution on Support forOptionalin ASN.1 Devolutions/picky-rs#201)picky-asn1-derdoes not support mappings, which is not critical for this crate, butnucypher-corehas those in its data structures.Since the whole point of this change is to use a "standard" format, we should establish whether the lack of support for
Optionaland mappings is a limitation of the standard, or just a lack of a feature inpicky-asn1-der. In the latter case we can make a PR to it, adding that support. Evidently, mappings do occur in formats that use ASN.1, e.g.VarBindhere encoded as a sequence of 2-tuples.